﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class ChiTietSanPham : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HienThi();
    }

    private void HienThi()
    {
        int Ma = 1;
        if (Request["Page"]!=null)
            Ma = int.Parse(Request["Page"].ToString());
        SanPhamDauGia_Ctl SPDG = new SanPhamDauGia_Ctl();
        DataSet dataSet = new DataSet();
        SqlDataAdapter adapter = SPDG.SanPhamDauGia(Ma);
        adapter.Fill(dataSet);
        detailView_SanPhamDauGia.DataSource = dataSet;
        detailView_SanPhamDauGia.DataBind();
    }

}
